package com.example.badyloans.servlet;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.badyloans.pojo.TSystemDictionaryItem;
import com.example.badyloans.dao.TSystemDictionaryItemMapper;
import com.example.badyloans.servlet.TSystemDictionaryItemService;

import java.util.List;

@Service
public class TSystemDictionaryItemServiceImpl implements TSystemDictionaryItemService{

    @Resource
    private TSystemDictionaryItemMapper tSystemDictionaryItemMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tSystemDictionaryItemMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(TSystemDictionaryItem record) {
        return tSystemDictionaryItemMapper.insertSelective(record);
    }

    @Override
    public TSystemDictionaryItem selectByPrimaryKey(Integer id) {
        return tSystemDictionaryItemMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TSystemDictionaryItem record) {
        return tSystemDictionaryItemMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<TSystemDictionaryItem> selectchaxunquanbu( ) {
        return tSystemDictionaryItemMapper.selectchaxunquanbu();
    }

    @Override
    public List<TSystemDictionaryItem> selectchaxunquanbu1(String keyword,Integer parentId,int currentPageNo, int pageSize) {
        return tSystemDictionaryItemMapper.selectchaxunquanbu1(keyword,parentId,currentPageNo,pageSize);
    }

    @Override
    public int selectchaxunquanbu2(Integer parentId,String keyword) {
        return tSystemDictionaryItemMapper.selectchaxunquanbu2(parentId,keyword);
    }
}
